package com.sumover.Service;

import com.sumover.POJO.User;
import com.sumover.POJO.UserDetail;
import com.sun.org.apache.xpath.internal.operations.Bool;
import org.springframework.stereotype.Service;

import java.util.List;

public interface UserService {
    User checkUserExist(User user);

    void addNewUser(String username, String password);

    boolean checkUserExist(String username, String password);

    List<User> queryAllUser();

    void updateUserName(User user, String updateName);

    boolean checkUsernameRepeat(String updateName);

    void updateUserPassword(User user, String password);

    UserDetail getUserDetail(User queryUser);

    void updateUserDetail(UserDetail userDetail);
}
